﻿    using System;
    using System.Runtime.Serialization;
    using System.Collections.Generic;

    namespace DriveJoy
    {

        /// <summary>
        /// Represents multiple folders returned in a JSON request
        /// </summary>
        public class Folders
        {
            public List<FolderInfo> data { get; set; }
        }

        /// <summary>
        /// Represents a photo Folder in SkyDrive.
        /// </summary>
        [DataContract]
        public class FolderInfo
        {
            /// <summary>
            /// Gets or sets the id of the Folder
            /// </summary>
            [DataMember(Name = "id")]
            public string Id
            {
                get;
                set;
            }

            /// <summary>
            /// Gets or sets the user who created the Folder
            /// </summary>
            [DataMember(Name = "from")]
            public From From
            {
                get;
                set;
            }

            /// <summary>
            /// Gets or sets the name of the Folder
            /// </summary>
            [DataMember(Name = "name")]
            public string Name
            {
                get;
                set;
            }

            /// <summary>
            /// Gets or sets the description of the Folder
            /// </summary>
            [DataMember(Name = "description")]
            public string Description
            {
                get;
                set;
            }

            /// <summary>
            /// Gets or sets the link to the Folder
            /// </summary>
            [DataMember(Name = "link")]
            public string Link
            {
                get;
                set;
            }


            /// <summary>
            /// Gets or sets the type of folder in SkyDrive
            /// </summary>
            [DataMember(Name = "type")]
            public string Type
            {
                get;
                set;
            }

            /// <summary>
            /// Gets or sets the created time of the Folder
            /// </summary>
            [DataMember(Name = "created_time")]
            public string CreatedTime
            {
                get;
                set;
            }

            /// <summary>
            /// Gets or sets the updated time of the Folder
            /// </summary>
            [DataMember(Name = "updated_time")]
            public string UpdatedTime
            {
                get;
                set;
            }

        }

    }

